<template>
  <div class="container">

    <!-- <div class="box">
      <header class="header">头部</header>
      <main class="content">内容</main>
    </div> -->
    <router-view></router-view>
    <footer class="footer">
      <van-tabbar v-model="active" route>
  <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
  <van-tabbar-item to="/kind" icon="search">分类</van-tabbar-item>
  <van-tabbar-item to="/cart" icon="friends-o">购物车</van-tabbar-item>
  <van-tabbar-item to="/user" icon="setting-o">我的</van-tabbar-item>
</van-tabbar>
    </footer>

  </div>
</template>
<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  background: #efefef;

  .box {
    flex: 1;
    overflow: auto;

    display: flex;
    flex-direction: column;

    .header {
      height: 50px;
    }

    .content {
      flex: 1;
      overflow: auto;
    }
  }

  .footer {
    height: 50px;
    background: rgb(159, 159, 159);
  }
}
</style>
